body {
  font-family: Arial, sans-serif;

  margin: 0;
  padding: 0;
}

#app {
  margin-top: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.chrome {
  width: 100%;
  height: 100%;
  max-width: 700px;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.chrome-toolbar {
  display: flex;
  flex-direction: column;
  background-color: #f1f1f1;
  border-bottom: 1px solid #dcdcdc;
  user-select: none;
}

.chrome-tabs {
  display: flex;
  align-items: center;
  height: 34px;
  padding: 0 10px;
  background-color: #e5e5e5;
}

/* styles.css */
.tab {
  display: flex;
  align-items: center;
  padding: 0 12px;
  margin-right: 5px;
  background-color: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s;
}

.tab:hover {
  background-color: #e0e0e0;
}

.tab.active {
  background-color: #e5e5e5;
  border-bottom: 2px solid #4285f4;
  color: #4285f4;
  font-weight: bold;
  box-shadow: none;
}

.tab.active svg path {
  stroke: #4285f4;
}

.tab button {
  background: none;
  border: none;
  color: #888;
  font-size: 14px;
  margin-left: 8px;
  cursor: pointer;
  outline: none;
}

.tab button:hover {
  color: #555;
}

.chrome-tabs {
  display: flex;
  align-items: center;
  height: 34px;
  padding: 0 10px;
  background-color: #e5e5e5;
}

.new-tab {
  padding: 0 10px;
  background-color: #f1f1f1;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s;
}

.new-tab:hover {
  background-color: #e0e0e0;
}

/* 控制栏和内容区域样式保持不变 */

.new-tab {
  padding: 0 10px;
  background-color: #f1f1f1;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s;
}

.new-tab:hover {
  background-color: #e0e0e0;
}

.chrome-controls {
  display: flex;
  align-items: center;
  padding: 5px 10px;
  background-color: #f9f9f9;
  border-top: 1px solid #dcdcdc;
}

.chrome-controls button,
.chrome-controls input {
  margin-right: 5px;
  background: none;
  border: none;
  color: #555;
  font-size: 14px;
  cursor: pointer;
  outline: none;
  padding: 5px;
  border-radius: 3px;
  transition: background-color 0.2s, color 0.2s;
}

.chrome-controls button:hover {
  background-color: #e0e0e0;
}

.chrome-controls input {
  flex: 1;
  padding: 6px;
  background-color: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.chrome-content {
  flex: 1;
  overflow: hidden;
  background-color: #fafafa;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chrome-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* styles.css */
.chrome-controls button,
.tab button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  width: 32px;
  /* 设置一个固定宽度 */
  height: 32px;
  /* 设置一个固定高度 */
  cursor: pointer;
  outline: none;
  transition: background-color 0.2s, color 0.2s;
  border-radius: 50%;
  /* 使按钮看起来像圆形 */
}

.chrome-controls button:hover,
.tab button:hover {
  background-color: #e0e0e0;
}

.chrome-controls svg,
.tab svg {
  width: 16px;
  /* 确保SVG图标大小一致 */
  height: 16px;
  fill: none;
  display: block;
}

.tab button {
  margin-left: 8px;
  margin-right: 2px;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab svg {
  width: 12px;
  height: 12px;
}

.tab button svg path,
.chrome-controls button svg path {
  stroke: #888;
}

.tab button:hover svg path,
.chrome-controls button:hover svg path {
  stroke: #555;
}







/* styles.css */
.chrome-bookmarks {
  display: flex;
  align-items: center;
  padding: 5px 10px;
  background-color: #f9f9f9;
  border-bottom: 1px solid #dcdcdc;
  overflow-x: auto;
}

.chrome-bookmarks button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #555;
  font-size: 14px;
  cursor: pointer;
  outline: none;
  padding: 5px;
  margin-right: 10px;
  transition: background-color 0.2s, color 0.2s;
}

.chrome-bookmarks button:hover {
  background-color: #e0e0e0;
}

.bookmark {
  display: flex;
  align-items: center;
  margin-right: 10px;
  padding: 5px 10px;
  background-color: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.bookmark a {
  text-decoration: none;
  color: #555;
  margin-right: 5px;
}

.bookmark button {
  background: none;
  border: none;
  color: #888;
  font-size: 14px;
  cursor: pointer;
  outline: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bookmark button:hover {
  color: #555;
}





/* styles.css */
/* 书签对话框 */
.bookmark-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  width: 300px;
  padding: 20px;
}

.dialog-content {
  display: flex;
  flex-direction: column;
}

.dialog-content h3 {
  margin-top: 0;
}

.dialog-content label {
  margin: 10px 0 5px;
}

.dialog-content input,
.dialog-content select {
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
}

.dialog-actions button {
  background-color: #4285f4;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 10px;
}

.dialog-actions button:last-child {
  background-color: #ccc;
}

.dialog-actions button:hover {
  opacity: 0.8;
}

.dialog-actions button:last-child:hover {
  background-color: #bbb;
}

/* 其他样式保持不变 */





/* styles.css */
/* 收藏夹栏 */
.chrome-bookmarks {
  /* padding: 10px; */
}

.bookmark-folder {
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.bookmark-folder span {
  flex: 1;
}

.bookmark-folder svg {
  margin-left: 5px;
}

.folder-contents {
  padding-left: 20px;
}

.bookmark a {
  display: block;
  padding: 5px;
  text-decoration: none;
  color: #000;
}

.bookmark a:hover {
  background-color: #f0f0f0;
}

.bookmark button {
  border: none;
  background: none;
  cursor: pointer;
}

.bookmark button svg {
  fill: #888;
}

.bookmark button:hover svg {
  fill: #555;
}

.chrome-tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.chrome-tab {
  padding: 10px;
  border: 1px solid #ccc;
  margin-right: 5px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  cursor: pointer;
  background-color: #fff;
}

.chrome-tab.active {
  background-color: #e0e0e0;
}

.chrome-tab button {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 16px;
  color: #888;
}

.chrome-tab button:hover {
  color: #555;
}

.bookmark-folder span {
  flex: 1;
}

.bookmark-folder svg {
  margin-left: 5px;
}

.folder-contents {
  padding-left: 20px;
}

.bookmark a {
  display: block;
  padding: 5px;
  text-decoration: none;
  color: #000;
}

.bookmark a:hover {
  background-color: #f0f0f0;
}

.bookmark button {
  border: none;
  background: none;
  cursor: pointer;
}

.bookmark button svg {
  fill: #888;
}

.bookmark button:hover svg {
  fill: #555;
}

.bookmark-list {
  display: flex;
  justify-content: flex-start;
  justify-items: flex-start;
  gap: 10px;
  justify-content: center;
}